package week5;

public class Circle {
    double radius;
    double area;
    //构造方法
    public Circle(double radius){
        this.radius=radius;
    }
    Circle(){
    }
    void printArea(double radius){
        System.out.println("Area of Circle is: "+area);
    }
    void printArea(){
        System.out.println("Area of Circle is:"+Math.PI*radius*radius);

    }

    double showRadius(double area){
        double radius = Math.sqrt(area/Math.PI);
        return radius;
    }
}
